# Tanım: GNS3 ağ simülatörü, Sunucu paketi
# URL: https://github.com/GNS3/gns3-server
# Paketçi: yasarciv67
python3-setuptools python3-jsonschema python3-aiohttp  python3-yarl python3-jinja python3-raven python3-psutil python3-async-timeout busybox dynamips
# Grup: ağ

isim=gns3-server
surum=2.1.20
devir=1
         
kaynak=(https://github.com/GNS3/gns3-server/archive/v$surum.tar.gz::$isim-$surum.tar.gz)

derle() {
    cd $isim-$surum
    sed -i -e '/^async-timeout<3\.0\.0/d' requirements.txt
    echo 'async-timeout>=3.0.0' >> requirements.txt

    python3 setup.py build
    python3 setup.py install --root=$PKG --optimize=1
    install -Dm644 LICENSE "$PKG/usr/share/licenses/$isim/LICENSE"
  
}
